import request from '@/utils/request'

// 查询用户身份审核记录列表
export function listIdentityAuditRecord(query) {
  return request({
    url: '/biz/identityAuditRecord/list',
    method: 'get',
    params: query
  })
}

// 查询用户身份审核记录详细
export function getIdentityAuditRecord(id) {
  return request({
    url: '/biz/identityAuditRecord/' + id,
    method: 'get'
  })
}

// 新增用户身份审核记录
export function addIdentityAuditRecord(data) {
  return request({
    url: '/biz/identityAuditRecord',
    method: 'post',
    data: data
  })
}

// 修改用户身份审核记录
export function updateIdentityAuditRecord(data) {
  return request({
    url: '/biz/identityAuditRecord',
    method: 'put',
    data: data
  })
}

// 删除用户身份审核记录
export function delIdentityAuditRecord(id) {
  return request({
    url: '/biz/identityAuditRecord/' + id,
    method: 'delete'
  })
}

// 启用禁用用户身份审核记录
export function changeStatus(data) {
  return request({
    url: '/biz/identityAuditRecord/changeStatus',
    method: 'put',
    data: data
  })
}